#include "Energy.h"

configuration EnergyC{
	
	provides {
		interface EnergyState;
		interface EnergyFlags;
	}

}
implementation{
	
	components 
#ifdef ENERGY_ENABLE
		EnergyP as Energy,
		MainC, 
		HplEMPinsC, 
		NoLedsC as Leds;
		
	MainC.SoftwareInit -> Energy;
	
	Energy.Leds -> Leds;
	Energy.ADC6 -> HplEMPinsC.ADC6;
	Energy.ADC7 -> HplEMPinsC.ADC7;
	Energy.ADC3 -> HplEMPinsC.ADC3;
	Energy.GIO0 -> HplEMPinsC.GIO0;
	
#else
		DummyEnergyP as Energy;
#endif 
	
	EnergyState = Energy.EnergyState;
	EnergyFlags = Energy.EnergyFlags;
	
}